package com.higgins.lawapp.client.settings.components;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.CheckBox;
import com.higgins.lawapp.client.settings.model.DataSourceModel;


public class DataSourceDeleteButton extends Button	implements ClickHandler	{
	private DataSourceModel dataSourceModel;
	
	public DataSourceDeleteButton(DataSourceModel dataSourceModel)	{
		this.dataSourceModel = dataSourceModel;
		this.addClickHandler(this);
		this.setText("Delete");
	}

	@Override
	public void onClick(ClickEvent event) {
		dataSourceModel.deleteDataSourceDTOs();
	}
}
